/**
 * 
 */
package jvs.tea.html;

import java.net.URI;
import java.net.URISyntaxException;

/**
 * @author qiangli
 *
 */
public final class Constant {
	public static final String DATE_FORMAT = "yyyy-MM-dd HH:mm";

	public static final String FULL_DATE_FORMAT = "EEE, yyyy-MM-dd HH:mm:ss.SSS z";
	
	public static final String TEMPLATE_DIR = "/jvs/tea/html/";
	
	public static final String COMMENT_MP = "/my/note";
	
	public static final String PUBLIC_MP = "/public";
	
	public static final String RES_PATH = ""; ///my/asset/
	
	public static final String STYLE = RES_PATH + "css/style.css";

	public static final String ICON_PATH = RES_PATH + "icon/";
	
	public static final URI ROOT_URI = toURI("v:/");

	private static URI toURI(String uri) {
		try {
			return new URI(uri);
		} catch (URISyntaxException e) {
			e.printStackTrace();
		}
		return null;
	}
	
	private Constant() {
	}
}
